home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-07-24 | 798 b | 43 lines | [TEXT/MPS ] |
- #
- # ProcessVTables
- # Script to process a C++ virtual table built by CFront.
- #
- # by Patrick C. Beard
- #
- # Copyright © 1990, by Patrick C. Beard. All rights reserved.
- #
-
- Set Echo 0
-
- # scan the argument list.
-
- Unset vtables options
-
- Loop
- Break if {#} == 0
- If "{1}" !~ /-≈/
- Set vtables "{1}"
- shift 1
- continue
- Else If "{1}" =~ /-≈/
- Set options "{1}"
- shift 1
- continue
- End
- End
-
- # generate the C code for the virtual tables.
-
- CPlus -mf -c -vtbl1 "{vtables}" > __vtable__.c
-
- # run the resulting code through filters that do what we want.
-
- filtertables "{options}" < __vtable__.c > __newvtable__.c
- fixtables "{options}" < __vtable__.c >> __newvtable__.c
-
- # compile the results and delete temporary files.
-
- C -b -w3 __newvtable__.c -o "{vtables}.o"
- delete __vtable__.c
- delete __newvtable__.c
-